package la.iok.hzsvn.lewin.movie.core.shopmovie.param;

import java.util.Objects;

/**
 * 优惠券使用参数
 */
public class CouponUseParam {
    /**
     * 拼车id
     */
    private Long carpoolId;
    /**
     * 优惠券id
     */
    private Long couponId;

    private Long playerFeeId;

    public Long getCarpoolId() {
        return carpoolId;
    }

    public void setCarpoolId(Long carpoolId) {
        this.carpoolId = carpoolId;
    }

    public Long getCouponId() {
        return couponId;
    }

    public void setCouponId(Long couponId) {
        this.couponId = couponId;
    }

    public Long getplayerFeeId() {
        return playerFeeId;
    }

    public void setplayerFeeId(Long playerFeeId) {
        this.playerFeeId = playerFeeId;
    }
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof CouponUseParam)) return false;
        CouponUseParam that = (CouponUseParam) o;
        return Objects.equals(carpoolId, that.carpoolId) && Objects.equals(couponId, that.couponId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(carpoolId, couponId);
    }

    @Override
    public String toString() {
        return "CouponUseParam{" +
                "carpoolId=" + carpoolId +
                ", couponId=" + couponId +
                ", playerFeeId=" + playerFeeId +
                '}';
    }
}
